package com.main;
import com.exec.*;
import com.exec.FenceController;
import com.tycmc.common.AbstractCalculation;

public class UserFunction extends AbstractCalculation {
    @Override
    public Object run(com.tycmc.bean.InputObject inputObject) {
        System.out.println("---------------------接收到参数："+inputObject);
        try{
            //处理缓存数据
            CacheMsgController.execCacheData(inputObject);
        }catch (Exception e){
            e.printStackTrace();
        }
        try{
            //发动机故障逻辑
            EngineFltController.execEngineFlt(inputObject);
        }catch (Exception e){
            e.printStackTrace();
        }
        try{
            //电驱动系统故障逻辑
            EleDriveFltController.execEleDriveFlt(inputObject);
        }catch (Exception e){
            e.printStackTrace();
        }
        try{
            //设备最新状态
            VclLastDataController.execLastData(inputObject);
        }catch (Exception e){
            e.printStackTrace();
        }
        try{
            //超速报警 0：不超速   1：超速
            OverSpeedController.execOverSpeed(inputObject);
        }catch (Exception e){
            e.printStackTrace();
        }
        try{
            //围栏报警
            FenceController.execFenceAlarm(inputObject);
        }catch (Exception e){
            e.printStackTrace();
        }

        return null;
    }

}